package zhtt.service;

import org.springframework.stereotype.Service;
import zhtt.entity.Expression;

import java.util.Date;

/**
 * Created by zhtt on 2016/10/28.
 */
@Service
public class SyncDataService {

    /**
     * 定时同步数据
     */
    public void sync(Expression expression){
        System.out.println();
        System.out.println();
        System.out.println("---------------"+expression.getRemarks()+"------------------------"+new Date());
        System.out.println("---------------------------------------");
        System.out.println("----------现在-------------------------");
        System.out.println("----------开始--------------------------");
        System.out.println("----------同步--------------------------");
        System.out.println("----------数据--------------------------");
        System.out.println("---------------------------------------");
    }

    public void sync(String remarks){
        System.out.println();
        System.out.println();
        System.out.println("-----#################----"+remarks+"---------!!!!!!!!!!!!!!----------");
        System.out.println("-----#################----"+remarks+"---------!!!!!!!!!!!!!!----------");
    }
}
